package com.xy.biz.mes.domain.enums;

import com.xy.lang.enums.CodeEnum;

/**
 * 状态：0-已取消，10-已登记，20-已分配，30-生产中，40-已完成
 */
public enum ManufactureOrderStatusEnum implements CodeEnum {
    CANCELED(0, "已取消"),
    REGISTERED(10, "已登记"),
    ASSIGNED(20, "已分配"),
    MANUFACTURING(30, "生产中"),
    FINISHED(40, "已完成");

    private int code;
    private String name;

    ManufactureOrderStatusEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
